home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Elements
/
e-position
< prev
next >
Wrap
Text File
|
1998-08-11
|
318b
|
15 lines
e-position element sequence
0-based
This function is able to return a list of integers representing all the positions of a defined item within a list.
(e-position '2 '(1 2 2 5 2 5 3 2 2 7))
=> (1 2 4 7 8)
(e-position '(2/16) '((1/16) (2/16) (2/16)))
=> (1 2)
(e-position 'a '(a b c d a b c a b a))
=> (0 4 7 9)